//
//  WYMessageCell.m
//  Boss
//
//  Created by admin on 2018/7/3.
//  Copyright © 2018年 admin. All rights reserved.
//

#import "WYMessageCell.h"
@interface WYMessageCell()
@property (strong, nonatomic) IBOutlet UIImageView *messageImageView;
@property (strong, nonatomic) IBOutlet UILabel *messageTitleLabel;
@property (strong, nonatomic) IBOutlet UILabel *messageDetailLabel;
@property (strong, nonatomic) IBOutlet UILabel *timeLabel;

@end
@implementation WYMessageCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(void)setModel:(WYMessageModel *)model
{
    _model = model;
    [self.messageImageView sd_setImageWithURL:[NSURL URLWithString:model.coverPic] placeholderImage:[UIImage imageNamed:@"消息占位图"]];
    self.messageTitleLabel.text = model.title;
    self.messageDetailLabel.text = model.briefing;
    self.timeLabel.text = [NSString compareTimeWithBossTime:model.releaseTime];
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
